//
//  UserProtcolViewController.m
//  MovieDate
//
//  Created by ann on 16/3/16.
//  Copyright © 2016年 MovieDate. All rights reserved.
//

#import "UserProtcolViewController.h"

@interface UserProtcolViewController ()<UITableViewDataSource,UITableViewDelegate>
@property(nonatomic,strong) IBOutlet UITableView *pTableView;
@property(nonatomic,strong) IBOutlet UIView *pView;
@end

@implementation UserProtcolViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initView];
    
    // Do any additional setup after loading the view from its nib.
}
-(void)initView{
    self.pTableView.delegate = self;
    self.pTableView.dataSource = self;
  
    [self.pTableView setTableHeaderView:_pView];
    self.navigationController.navigationBarHidden = NO;
 
    [self selDefaultNavigationBackground];
    [self selDefaultNavigationWithTitle:@"用户协议"];
    [self selAddLeftBackButton];
    
    UIView *view = [[UIView alloc]init];
    [self.pTableView setTableFooterView:view];
    
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 0;

}

-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 0;

}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
NSString *idenfier = @"cell";
    
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:idenfier];
    if (cell== nil) {
        cell = [[UITableViewCell alloc]initWithStyle:(UITableViewCellStyleValue1) reuseIdentifier:idenfier];
        
    }
    return cell;

}
-(void)scrollViewDidScroll:(UIScrollView *)scrollView{

   self.pTableView.contentSize = CGSizeMake([UIScreen mainScreen].bounds.size.width,[UIScreen mainScreen].bounds.size.height+500);

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
